package com.woniu.his.bms.service.impl;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.woniu.his.bms.service.dto.QueryAmountForStaffDto;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class AA {


    public static void main(String[] args) {



            String date="2022-12-03 21:06:24";

          System.out.println(  new DateTime() );

            SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
            Date startTime = DateUtil.parse(date);


           System.out.println(startTime);

            Calendar calendar = new GregorianCalendar();
            calendar.setTime(startTime);
            calendar.add(Calendar.DATE, 1);
            DateTime endTime = DateUtil.parse(s.format(calendar.getTime()));



        System.out.println(endTime);


    }
}
